package org.example.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2024-10-15
 */
@Getter
@Setter
@TableName("user")
public class User {


    @TableField("user_name")
    private String userName;


    @TableField("password")
    private String password;

    @TableId("id")
    private Integer id;

    @TableField("version")
    private Integer version;

    @Override
    public String toString() {
        return this.userName+":"+this.password+":"+this.version;
    }
}
